﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kratos.Framework.ContentManagement.Models.Order;

namespace Kratos.Modules.Order.Repositories
{
    public static class ProductRepository
    {
        public static Product GetProducyById(this IQueryable<Product> products, int id)
        {
            return products.SingleOrDefault(p => p.ProductId == id);
        }
    }
}
